<?php
session_start();
?>
<html>
<head>


<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<style type="text/css">
<!--
#Layer1 {
	position:absolute;
	left:199px;
	top:56px;
	width:197px;
	height:34px;
	z-index:1;
}
-->
</style>
</head>

<body bgcolor="#FFFFFF">
<?php      

include("../../MerchandiseBay/conn.php");

  $username=$_SESSION['username'];
  $SQL="select * from users where username='".$_SESSION['username']."'";
  //$SQL="select * from users where username='$username'";
  $qry=mysql_query($SQL,$conn);

  while($row=mysql_fetch_array($qry))
	    { 
		  extract($row);  
?>
<form name="reservation" method="post" action="profileUp.php" onSubmit="return checkData()">
  <table width="400" height="202" border="0" cellpadding="0" cellspacing="0">
    <tr> 
      <td height="33" colspan="2"><div align="center">
        <p><font color="#0000FF" size="5"><strong><?php echo $firstname; ?> <font color="#0000FF" size="5"> 'S PROFILE </font></strong></font></p>
        <p>&nbsp;</p>
      </div></td>
    </tr>
    <tr> 
      <td width="34%" height="32"><div align="right"><font color="#000000"><strong> First Name 
          * :</strong></font></div></td>
      <td width="66%">
        <label for="textfield"></label>
      <input type="text" name="firstname" id="textfield" value="<?php echo $firstname; ?>"></td>
    </tr>
	<tr> 
      <td width="34%" height="32"><div align="right"><font color="#000000"><strong>Last Name
          * :</strong></font></div></td>
      <td width="66%">
        <label for="label"></label>
      <input type="text" name="lastname" id="label" value="<?php echo $lastname; ?>"></td>
    </tr>
	<tr> 
      <td width="34%" height="32"><div align="right"><font color="#000000"><strong>Username
          * :</strong></font></div></td>
      <td width="66%">
        <label for="label2"></label>
      <input type="text" name="username" id="label2" value="<?=$username?>"><input type="hidden" name="oldusername" id="label2" value="<?=$username?>"></td>
    </tr>
	<tr> 
      <td width="34%" height="32"><div align="right"><font color="#000000"><strong>Password
          * :</strong></font></div></td>
      <td width="66%">
        <label for="label3"></label>
      <input type="text" name="password" id="label3" value="<?php echo $password; ?>"></td>
    </tr>
    <tr> 
      <td height="35"><div align="right"><font color="#000000"><strong>Tel No 
          * :</strong></font></div></td>
      <td>
        <label for="label4"></label>
      <input type="text" name="telno" id="label4" value="<?php echo $telno; ?>"></td>
    </tr>
    <tr> 
      <td height="32"><div align="right"><font color="#000000"><strong>Email * 
          :</strong></font></div></td>
      <td><label for="label5"></label>
      <input type="text" name="email" id="label5" value="<?php echo $email; ?>"></td>
    </tr>
    <tr> 
      <td height="70"><div align="right"> 
          <p><font color="#000000"><strong>Location * :</strong></font></p>
          <p>&nbsp;</p>
        </div></td>
      <td>
        </textarea>
        <label for="textarea"></label>
      <textarea name="location" id="textarea" value="<?php echo $location;?>"></textarea></td>
    </tr>
	<tr> 
      <td height="32"></td>
      <td></td>
    </tr>
	<tr> 
      <td height="32"><div align="right"></div></td>
      <td><input type="submit" name=update value="Update"></td>
	</tr>
  </table>	
</form>
  	<?php
	
}	

	?>
  <p>&nbsp;</p>
  <table width="400" height="407" border="0" cellpadding="0" cellspacing="0">


    <tr>
      <td height="23" colspan="2"><p>&nbsp;</p></td>
    </tr>
    <tr>
      <td width="34%" height="22"><div align="right"></div></td>
      <td width="66%"><font face="Verdana">
       
      </font></td>
    </tr>
    <tr>
      <td height="24"><div align="right"><font color="#FF6600"></font></div></td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td height="31"><div align="right"></div></td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td height="31"><div align="right"></div></td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td height="22"><div align="right"></div></td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td height="32"><div align="right"></div></td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td colspan="2"><div align="left"> </div></td>
    </tr>
  </table>
  <p>&nbsp;</p>
</form>

<p>&nbsp;<!-- PopUp Calendar BEGIN -->

<noscript><p>&nbsp;</p></noscript>
</body>
</html>
